package com.hzhr.iot.collect.service.helper;

import com.hzhr.iot.collect.Global;
import com.hzhr.iot.collect.model.collectLog.CollectLogPostModel;
import com.hzhr.iot.collect.service.CollectLogService;
import com.hzhr.iot.core.exception.ServiceException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component
public class CollectLogServiceHelper {
    @Autowired
    Global global;
    @Autowired
    CollectLogService collectLogService;

    public void post(CollectLogPostModel collectLogPostModel) throws ServiceException {
        collectLogService.post(global.initGlobalHeader(), new HashMap<>(), collectLogPostModel);
    }
}
